import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:online_study/mine/learning_record.dart';
import 'package:online_study/mine/my_info.dart';
import 'package:online_study/mine/my_module.dart';
import 'package:online_study/mine/my_statistical_learning.dart';
import 'package:online_study/theme/colors.dart';
import 'package:online_study/theme/size.dart';

//我的
class MyPage extends StatefulWidget {
  @override
  _MyPageState createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: PreferredSize(
          child: AppBar(
            backgroundColor: ThemeColor.colorWhite,
            elevation: ThemeSize.appElevation,
          ),
          preferredSize: Size.fromHeight(0)),
      // appBar: AppBar(
      //   backgroundColor: ThemeColor.colorWhite,
      //   title: AppTitle(ThemeString.mine),
      // ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            MyInfoPage(),
            MyModulePage(),
            StatisticalLearningPage(),
            LearningRecordPage()
          ],
        ),
      ),
    );
  }
}
